Code Explainers
Code explainers tagged #http-status
go
package health import ( "context"
Building a health check endpoint in Go
health-check
context-timeout
dependency-probing
Intermediate
8 steps
go
package middleware import ( "net/http"
A maintenance-mode gate in Gin
middleware
atomic-flag
concurrency
Intermediate
8 steps
ruby
class HealthController < ApplicationController skip_before_action :authenticate_user!, raise: false skip_forgery_protection
Building a health check endpoint in Rails
health-check
monitoring
error-handling
Intermediate
7 steps
java
@RestControllerAdvice public class GlobalExceptionHandler { private static final Logger log = LoggerFactory.getLogger(GlobalExceptionHandler.class);
Centralized error handling in Spring
exception-handling
problemdetail
rest-api
Intermediate
7 steps
rust
use axum::{ http::StatusCode, response::{IntoResponse, Response}, Json,
How a custom error type maps to HTTP in Axum
error-handling
enums
trait-implementation
Intermediate
7 steps
rust
use axum::{extract::Form, http::StatusCode, response::{IntoResponse, Response}, Json}; use serde::Deserialize; use serde_json::json; use std::collections::HashMap;
Validating a signup form in Axum
form-validation
deserialization
error-handling
Intermediate
8 steps