Modify KiwiStandardResponses#standardErrorResponse to verify the response status is a client or server error #1165
Labels
enhancement
A request for change or improvement to an existing feature
Milestone
KiwiStandardResponses#standardErrorResponse
allows anyResponse.Status
to be supplied.It should validate that the status is either a client (
4xx
) or server (5xx
) error.Also, remove the javadoc which says "Does not verify that the given status is actually an error status". It can be replaced with an
@throws
javadoc that says it throwsIllegalArgumentException
if the given status is not a client or server error.The text was updated successfully, but these errors were encountered: