Minor fix to error responses