hasErrors() public method

Check for error info in api response and save it.
public hasErrors ( ) : boolean
return boolean
 /** @test */
 public function it_should_check_responses_with_errors()
 {
     $response = new Response();
     $response->fill($this->createErrorApiResponse('some error'));
     $this->assertTrue($response->hasErrors());
     $response = new Response();
     $response->fill($this->createSuccessApiResponse());
     $this->assertFalse($response->hasErrors());
 }