frontend: check backend request status code