Title: http_response_code() throwing 404 with OMGF plugin activated
Last modified: April 22, 2024

---

# http_response_code() throwing 404 with OMGF plugin activated

 *  [yash2703](https://wordpress.org/support/users/yash2703/)
 * (@yash2703)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/http_response_code-throwing-404-with-omgf-plugin-activated/)
 * Hello there,
 * I have a plugin where i use the inbuilt php function http_response_code(), which
   throws 404 error when OMGF plugin is activated, as soon as we deactivate this
   plugin it works fine.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/http_response_code-throwing-404-with-omgf-plugin-activated/#post-17703304)
 * Hi! Can you share the relevant code, so I can try and reproduce it? E.g. is the
   code you’re running triggered by a filter or action hook?

Viewing 1 replies (of 1 total)

The topic ‘http_response_code() throwing 404 with OMGF plugin activated’ is closed
to new replies.

 * ![](https://ps.w.org/host-webfonts-local/assets/icon-256x256.png?rev=3300821)
 * [OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.](https://wordpress.org/plugins/host-webfonts-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-webfonts-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-webfonts-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-webfonts-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-webfonts-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-webfonts-local/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/http_response_code-throwing-404-with-omgf-plugin-activated/#post-17703304)
 * Status: not a support question