Forbidden is an error when the client tries to access a resource they are not allowed to access.
(msg string)
| 50 | // Forbidden is an error when the client tries to access a resource |
| 51 | // they are not allowed to access. |
| 52 | func Forbidden(msg string) *MatrixError { |
| 53 | return &MatrixError{"M_FORBIDDEN", msg} |
| 54 | } |
| 55 | |
| 56 | // BadJSON is an error when the client supplies malformed JSON. |
| 57 | func BadJSON(msg string) *MatrixError { |
no outgoing calls