I managed to solve this by adding the following to <system.webServer> tag in Web.config;
<httpErrors errorMode="DetailedLocalOnly" existingResponse="PassThrough"> </httpErrors>