# Slim 3 Status Code 500 will ends in 403 forbidden

**URL:** <https://discourse.slimframework.com/t/slim-3-status-code-500-will-ends-in-403-forbidden/811>\
**Category:** Questions\
**Created:** [October 18, 2016, 12:22pm UTC](https://discourse.slimframework.com/t/slim-3-status-code-500-will-ends-in-403-forbidden/811 "2016-10-18T12:22:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dag](https://avatars.discourse-cdn.com/v4/letter/d/6f9a4e/32.png) [@dag](https://discourse.slimframework.com/u/dag)\
**Post date:** [October 18, 2016, 12:22pm UTC](https://discourse.slimframework.com/t/slim-3-status-code-500-will-ends-in-403-forbidden/811/1 "2016-10-18T12:22:24Z")

</div>

Hello,

Firstly, sorry for my wrong english.  
I hope you can understand my problem.

i am new in slim php.  
I have a very strange problem.

This simple short code snippet will show you my problem.

```
$app->get('/servererror', function($request, $response) {
        $newResponse = $response->withStatus(500);
        return $newResponse->write('Server Error!!!');
});

```

On my developer version it works great.  
If i call it in chrome or postman or via curl i get a message with “Server Error!!!”

On my live version this will not work.  
I get a 403 Forbidden.

You can try it. Call this link. [https://api.lab.report:8010/servererror](https://api.lab.report:8010/servererror)

Can you help me?  
Can you explain what is my problem.

Thank a lot for your time.

Best greats

---

<div class="post-metadata">

**Author:** ![tflight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tflight/32/1205_2.png) [@tflight](https://discourse.slimframework.com/u/tflight)\
**Post date:** [October 18, 2016, 1:42pm UTC](https://discourse.slimframework.com/t/slim-3-status-code-500-will-ends-in-403-forbidden/811/2 "2016-10-18T13:42:03Z")

</div>

I’m not getting a 403 Forbidden when getting that URL. I’m getting a status code of 500 with the text `Server Error!!!`'.

---

<div class="post-metadata">

**Author:** ![dag](https://avatars.discourse-cdn.com/v4/letter/d/6f9a4e/32.png) [@dag](https://discourse.slimframework.com/u/dag)\
**Post date:** [October 18, 2016, 2:10pm UTC](https://discourse.slimframework.com/t/slim-3-status-code-500-will-ends-in-403-forbidden/811/3 "2016-10-18T14:10:50Z")

</div>

Thanks for your reply.

It’s correct, now it works.  
The problem was our firefall.  
I do not understand why, but now it works properly
