* Return HTTP 422 instead of HTTP 500 on "You have already favorited this post" errors. * Log unexpected errors in Ajax requests to the console.
* Simplify code. * Show backtraces for all users, not just builders. * Show backtraces only for unexpected server errors (status 5xx), not for normal client errors (status 4xx). * Log expected errors at info level (reduce noise in production logs).