Modified Silex provider to use HttpException status codes

If the exception does not have HttpException in its inheritance tree, the current value of 500 will be used as a fallback.