Standardize error responses in your Next.js API routes. Return appropriate HTTP status codes and messages for client consumption.