Add status code to error