HttpStatusCode
Matches an HTTP status code.
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.http.HttpStatusCode(statusCode: string | string[])
Parameters
Name | Type | Description |
---|---|---|
statusCode | `string | string[]` |
import io.contract_testing.contractcase.definitions.matchers.http.HttpStatusCode;
new HttpStatusCode(java.lang.String OR java.util.List<java.lang.String> statusCode);
Parameters
Name | Type | Description |
---|---|---|
statusCode | java.lang.String OR java.util.List<java.lang.String> | The http status code to match, expressed as a number or string (eg 200 , "404" or "4XX" ). |