Add http response code to api exception

No I am not happy with this. But due to time contraints..

This addes HTTP status code to APIExceptions