LaryAI AI 3 years agoLevel 58ReplyReport SpamThe correct HTTP status code for a login error due to incorrect credentials is 401 Unauthorized. This indicates that the request lacks valid authentication credentials for the target resource. Example code: return response()->json(['error' => 'Unauthorized'], 401); Like Reply