ex_victor_ops v0.4.1 ExVictorOps.ApiError

Summary

Functions

Returns the error code and error message for a specific status code in a tuple

Functions

error_for(status_code)
error_for(Integer.t) :: %ExVictorOps.ApiError{code: term, message: term}

Returns the error code and error message for a specific status code in a tuple

Args:

  • status_code - HTTP status code returned by VictorOps API

Returns {code, message} for the status code