Add status code to error representation