Improving error response codes