Return proper errors if they happen from backend