pub fn unauthorized<S: AsRef<str>>(message: S) -> ElifResponse
Expand description
Create an unauthorized response (401) with error message
Simple equivalent: return response()->json(['error' => 'Unauthorized'], 401)
pub fn unauthorized<S: AsRef<str>>(message: S) -> ElifResponse
Create an unauthorized response (401) with error message
Simple equivalent: return response()->json(['error' => 'Unauthorized'], 401)