Added support for the customErrors configuration.

Added support for the customErrors configuration. When disabled WebAPI
wil also send exceptions over the line in case of a 500 status.