# Log HTTP Status Codes (for Example 404)

**URL:** <https://community.a10networks.com/t/log-http-status-codes-for-example-404/230>\
**Category:** aFleX\
**Created:** [October 8, 2013, 1:00pm UTC](https://community.a10networks.com/t/log-http-status-codes-for-example-404/230 "2013-10-08T13:00:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel.neubacher\_xing.com](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@daniel.neubacher\_xing.com](https://community.a10networks.com/u/daniel.neubacher_xing.com)\
**Post date:** [October 8, 2013, 1:00pm UTC](https://community.a10networks.com/t/log-http-status-codes-for-example-404/230/1 "2013-10-08T13:00:09Z")

</div>

A little irule which is helping me spotting errors while migrating configs to a10.

```auto
when HTTP\_REQUEST \{
set object "[HTTP::host][HTTP::path]"
\}

when HTTP\_RESPONSE \{
if \{ 
[HTTP::status] eq "404" 
\} \{ 
log local0. "404: $\{object\}"
\#Just to be sure....

```

unset object

```auto
\} 
\}

```
