Page Size Too Large
Table of Contents
Purpose #
Validates behavior of the server when an extra-large page size is sent as part of Australian CDR calls. What is an invalid page size? A page size in excess of 1000 is considered too large and should respond with an appropriate error.
Spec reference #
- Error Codes
- https://consumerdatastandardsaustralia.github.io/standards/#error-codes
- Http Headers
- https://consumerdatastandardsaustralia.github.io/standards/#http-headers
Checks #
- Response is returned
- Status code
- Error body
- Error message
Expects #
- Status code of 400
- Response body containing
- error title
Invalid Page Size
- error code
urn:au-cds:error:cds-all:Field/InvalidPageSize
- error detail
a human readable message
- error title
{
errors: [
{
code: 'urn:au-cds:error:cds-all:Field/InvalidPageSize',
detail: 'A detailed description',
title: 'Invalid Page Size'
}
]
}
Messages #
- Endpoint returned with data when a page-size over 1000 was sent
- Returned when the server returned an empty response.
- No Error body returned on error response
- Returned when the server responded with an empty body.
- Unexpected error status, expected 400, got XXX
- Returned when the status was not 400 as expected but instead returned the value specified.
- An error with code: urn:au-cds:error:cds-all:Field/InvalidPageSize and title Invalid Page Size is expected to be returned
- Returned when the response body contains a different error code or title than those expected.