Davy.Error (davy v0.3.1)

Copy Markdown View Source

WebDAV error with HTTP status code mapping.

Backend callbacks return {:error, %Davy.Error{}} to signal failures. The code atom maps to an HTTP status code via status_code/1.

Summary

Functions

Returns the HTTP status code for the given error code atom.

Types

t()

@type t() :: %Davy.Error{code: atom(), message: String.t() | nil}

Functions

status_code(code)

@spec status_code(atom()) :: pos_integer()

Returns the HTTP status code for the given error code atom.