XML HTTP error responses set a 200 error code instead of a 500

Created on 5 July 2017, almost 8 years ago
Updated 30 August 2023, over 1 year ago

To reproduce:
1. Create an AJAX request to your drupal application
2. When handling the AJAX request, cause a TypeError

Expected behaviour:
The AJAX request returns with a 500 (bad request) http status code

Actual behaviour:
The AJAX request returns with a 200 (ok) http status code

Context:
Ubuntu 16.04.2 LTS
Php 7.1.5
Apache 2.4.18

πŸ› Bug report
Status

Needs work

Version

9.5

Component
AjaxΒ  β†’

Last updated 19 minutes ago

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024