Vigyata.AI
Is this your channel?
GithubGithub04

29 Add notFound helper to Http Client response

This PR adds the notFound() helper to the Laravel HTTP client response. It’s a small change, but I like it because it reads better than checking $response->status() === 404, especially when you’re writing clean, expressive code.

Buy on Github

You'll be taken to Github to complete your purchase.

Pros

  • +More readable than manual status code checks
  • +Keeps HTTP response checks consistent with other helper methods

Cons

  • -It’s a convenience method, so it doesn’t add new functionality beyond the status check

Featured in this video