-
-
Notifications
You must be signed in to change notification settings - Fork 429
Closed
Labels
Description
According to W3Techs, Ruby is the second most use server-side programming language after PHP. I think we should start covering Ruby based stuff, just like we do for Java and PHP. To get things started, I've got some Ruby errors via ChatGPT(feel free to verify these with other LLMs):
Here’s a comprehensive list of Ruby errors that can appear in HTTP responses, which should be blocked or sanitized in a Web Application Firewall (WAF) to prevent information disclosure and security risks.
🛑 Critical Ruby Errors That May Appear in HTTP Responses
1️⃣ Core Ruby Errors
NoMethodError
NameError
ArgumentError
TypeError
RuntimeError
StandardError
SyntaxError
LoadError
IndexError
RangeError
LocalJumpError
SystemExit
SecurityError
NotImplementedError
ScriptError
Interrupt
ZeroDivisionError
2️⃣ Ruby on Rails Errors
ActionController::RoutingError
ActionController::InvalidAuthenticityToken
ActionController::ParameterMissing
ActionController::UnknownFormat
ActionController::BadRequest
ActionController::UrlGenerationError
ActionController::RedirectBackError
ActionController::InvalidCrossOriginRequest
ActiveRecord::RecordNotFound
ActiveRecord::RecordInvalid
ActiveRecord::StatementInvalid
ActiveRecord::RecordNotUnique
ActiveRecord::ConnectionTimeoutError
ActiveRecord::SerializationTypeMismatch
ActiveRecord::Deadlocked
ActiveRecord::SubclassNotFound
ActiveModel::ForbiddenAttributesError
ActiveSupport::MessageVerifier::InvalidSignature
ActiveSupport::DeprecationException
3️⃣ Database & ORM Errors (ActiveRecord, PostgreSQL, MySQL, SQLite)
PG::ConnectionBad
PG::UndefinedTable
PG::UndefinedColumn
PG::SyntaxError
PG::UniqueViolation
PG::CheckViolation
PG::ForeignKeyViolation
PG::NotNullViolation
PG::InvalidTextRepresentation
PG::CharacterNotInRepertoire
Mysql2::Error
Mysql2::TimeoutError
SQLite3::BusyException
SQLite3::ConstraintException
4️⃣ Rack Middleware & Web Server Errors (Puma, Unicorn, Thin, WEBrick)
Rack::Timeout::RequestTimeoutException
Rack::Lint::LintError
Rack::QueryParser::ParameterTypeError
Puma::HttpParserError
Unicorn::ClientShutdown
Thin::ConnectionError
WEBrick::HTTPStatus::InternalServerError
5️⃣ JSON, Serialization, and Parsing Errors
JSON::ParserError
JSON::GeneratorError
Oj::ParseError
Oj::GeneratorError
6️⃣ Network & HTTP Client Errors
SocketError
EOFError
OpenSSL::SSL::SSLError
Timeout::Error
Net::ReadTimeout
Net::OpenTimeout
Net::HTTPBadResponse
Net::HTTPHeaderSyntaxError
7️⃣ File Handling & System Errors
Errno::ENOENT # No such file or directory
Errno::EACCES # Permission denied
Errno::ECONNREFUSED # Connection refused
Errno::ETIMEDOUT # Connection timed out
Errno::EPIPE # Broken pipe
Errno::EMFILE # Too many open files
SystemCallError
8️⃣ Authentication & Security Errors
Devise::Unauthorized
JWT::DecodeError
JWT::ExpiredSignature
BCrypt::Errors::InvalidHash
9️⃣ Threading & Concurrency Errors
ThreadError
FiberError
Mutex::LockError