# Logging http response states

**URL:** <https://community.bloomreach.com/t/logging-http-response-states/1765>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [February 25, 2020, 1:49pm UTC](https://community.bloomreach.com/t/logging-http-response-states/1765 "2020-02-25T13:49:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzeh](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mzeh](https://community.bloomreach.com/u/mzeh)\
**Post date:** [February 25, 2020, 1:49pm UTC](https://community.bloomreach.com/t/logging-http-response-states/1765/1 "2020-02-25T13:49:15Z")

</div>

Hey,

In the case or our project we need to log (i.e.) if there is a 401 response thrown back at the user.  
Currently we can see this in our New Relic, but only because there is a 401.jsp being rendered.

In addition to that, we have configured, that our logs are sent to splunk.  
Now those 401 errors should also be logged and be sent to splunk.

Is there an elegant solution for logging such cases? Is there any class that can be traced in the log4j config that is responsible for these response codes?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)\
**Post date:** [February 25, 2020, 3:56pm UTC](https://community.bloomreach.com/t/logging-http-response-states/1765/2 "2020-02-25T15:56:50Z")

</div>

Maybe this can give you some inspiration:

> **[Advanced Exception Handling - Bloomreach Experience - Open Source CMS](https://documentation.bloomreach.com/library/concepts/error-pages-and-error-handling/4.-advanced-exception-handling.html)**
>
> Open Source Enterprise Content Management
