Closed ric-evans closed 1 year ago
remembering to return after writing the error is prone to create bugs, especially when the writing is nested in a call stack.
Instead, simply raise HTTPError. Some refactoring will be needed for validation/deconfliction methods that return bools.
raise HTTPError
Example:
raise HTTPError(403, reason="authentication failed")
remembering to return after writing the error is prone to create bugs, especially when the writing is nested in a call stack.
Instead, simply
raise HTTPError
. Some refactoring will be needed for validation/deconfliction methods that return bools.