Skip to content

Missing descriptions of code statuses #146

@Xerphis

Description

@Xerphis
Undefined offset: 422 in ...athlon1600\php-proxy\src\Http\Response.php on line 77

In Response class, in status codes missing some of descriptions from status codes. For example: 422 - but there are more codes without description. If index (status code) not exists, php throw notice message. Other descriptions that should be completed can be found here.

Moreover, code descriptions should first come from the original http response, and as a last resort, if the description from the response does empty, it should be overwritten with the description from $statusCodes. Otherwise, if the index in $statusCodes is not found, the method getStatusText should return an default value (empty string).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions