Added error code result when request fails