Added new functions

- apn_is_error()
- apn_error_message()
- apn_error_code()