title: Firebase API doesn't respond with common error codes using Axios on react native
body: <p>I'm working with Firebase Auth REST API and React Native using Axios and Redux.</p>
  
  <p>I have an action to Sign in with email and password, this is my code:</p>
  
  <pre><code>export function signIn(data){
      const request = axios({
          method:'POST',
          url:SIGNIN, 
          data:{
              email: data.email,
              password: data.password,
              returnSecureToken:true 
          },
          headers:{
              "Content-Type":"application/json"
          }
          }).then(response =&gt; {
              return response.data
          }).catch( e =&gt; {
              console.log(e)
              return false
          });
  
      return {
          type: SIGN_IN_USER,
          payload: request
      }
  }
  </code></pre>
  
  <p>If I insert a credentials with email and password correctly everything is fine.</p>
  
  <p>But if I insert an email with errors I expect an answer as indicated in the documentation by example:</p>
  
  <blockquote>
    <p>EMAIL_NOT_FOUND: There is no user record corresponding to this identifier. The user may have been deleted.</p>
    
    <p>INVALID_PASSWORD: The password is invalid or the user does not have a password.</p>
    
    <p>USER_DISABLED: The user account has been disabled by an administrator.</p>
  </blockquote>
  
  <p>But I only receive this answer if I generate some error:</p>
  
  <blockquote>
    <p>Error: Request failed with status code 400</p>
  </blockquote>
  
  <p>Nothing like the answers indicated in the documentation.</p>
  
  <p>Can somebody help me? Thanks!!</p>