Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Custom HTTP status codes invalid #27

Closed
jeanCarloMachado opened this issue Oct 19, 2015 · 2 comments
Closed

Custom HTTP status codes invalid #27

jeanCarloMachado opened this issue Oct 19, 2015 · 2 comments

Comments

@jeanCarloMachado
Copy link
Contributor

I'm having problem when trying to use a custom status code: 419 with zend-http.

The error:

Fatal error: Uncaught exception 'Zend\Http\Exception\InvalidArgumentException' with message 'Invalid status code provided: "419"' in /home/jean/projects/clipp/Backend/vendor/zendframework/zend-http/src/Response.php:254
Stack trace:
#0 /home/jean/projects/clipp/Backend/module/Api/Module.php(96): Zend\Http\Response->setStatusCode(419)
@jeanCarloMachado jeanCarloMachado changed the title Custom HTTP status codes Custom HTTP status codes invalid Oct 19, 2015
@jeanCarloMachado
Copy link
Contributor Author

I thought It would be better to enable the usage of custom status. Maybe through the activation of a parameter.

@Martin-P
Copy link
Contributor

I thought It would be better to enable the usage of custom status. Maybe through the activation of a parameter.

Already possible, see method Zend\Http\Response::setCustomStatusCode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants