symfony/symfony — Issue #2552: complete http-status-code list in Response::statusTexts
Author: kmohrf
Created: 2011-11-03 11:13:43+00:00
State: open

hi,

i don’t know if there is any reason for this, but Response::statusTexts doesn’t include all the available HTTP status codes. I for one use code 422 for returning form validation errors in my rest/json apis. it’s maybe open to discussion if that is a good decision (i know that 422 was introduced by an rfc for webdav) but nonetheless i think the list of status texts should be complete.

if you're ok with this i’ll provide you with a patch.

thanks konrad