Improved Error and Token Handling

Improved

  • Error handling now provides better differentiation of error types.
  • Token extraction method accepts both lowercase and capitalized 'Authorization' headers.