Title: http_response_code and nginx
Last modified: March 17, 2023

---

# http_response_code and nginx

 *  [smarx80](https://wordpress.org/support/users/smarx80/)
 * (@smarx80)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/http_response_code-and-nginx/)
 * Hi,
   I report that the plugin has a bug related to the http_response_code function.
   In my case I use nginx as web server, and it seems that the function used http_response_code()
   is not working properly (I get always a 200 response code).Replacing that call
   with header(“Status:”. apply_filters( ‘yith_maintenance_http_status’, $http_status));
   everything works normally.Thanks, Simone.

The topic ‘http_response_code and nginx’ is closed to new replies.

 * ![](https://ps.w.org/yith-maintenance-mode/assets/icon.svg?rev=3041670)
 * [YITH Maintenance Mode](https://wordpress.org/plugins/yith-maintenance-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-maintenance-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-maintenance-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-maintenance-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-maintenance-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-maintenance-mode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [smarx80](https://wordpress.org/support/users/smarx80/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/http_response_code-and-nginx/)
 * Status: not resolved