added http status code in error