Solution:
I have found a solution removing the following line from web.config
<httpErrors existingResponse="PassThrough" />