phly / PhlyRestfully

ZF2 module for creating RESTful JSON APIs using HAL and API-Problem
108 stars 45 forks source link

Expand ApiProblem's mapping of titles to include more common status code => title pairs #55

Closed telkins closed 11 years ago

telkins commented 11 years ago

ApiProblem has a list of problem status titles that could easily be expanded to cover all valid status codes. This would leave the $problemStatusTitles property no longer providing status titles for just "common" problems, however.

My thinking is that since the list of HTTP status codes is relatively finite and not terribly long, then it would be reasonable to expand this list to be the same, more or less, as what we find $recommendedReasonPhrases in Zend\Http\Response.

weierophinney commented 11 years ago

Closed with #56