Added getter parameters to force an error response (code and status).