added http status codes to errors