agent.http_error_detection=true

When adding this setting to php.ini, the PHP agent, marks HTTP error response, such as status code 4xx response as an error.