is it possible in anulgarjs to fetch the response header message?

in a code similar to that

```
$http.get(url)
    .success(){
         something
    }.error(status,"headers text message)"{
             alert(status+" "+"headers text message or a method to get it";
    }

```

in the alert i need to write somthing like that:
500 internal server error.
In the console log i can see the error status and text message,
what do i have to put in the error case? what is the best way to do that?