Page MenuHomePhabricator

All responses use "OK" as the status text
Closed, ResolvedPublic

Description

It seems that all Aphront responses use OK as the status text, regardless of the actual response code.

404.png (744×1 px, 95 KB)

Revisions and Commits

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Aphront.
joshuaspence added a subscriber: joshuaspence.

Specifically, in the screenshot shown, the response is shown as 404 OK instead of 404 Not Found.

Hi, I'm not sure how Phabricator handles compatibility libraries but PHP has http_response_code() available which sets the status code and message in one go. The fix for this task could be introduced as a compat method for PHP < 5.4.