Skip to main content
ModernAPI

Developer Troubleshooting Guide

Comprehensive debugging workflows and error analysis techniques

GuidesAll Levels• 25 min read
Quick Error Debugging Checklist
Follow these 6 steps to systematically debug any error in ModernAPI
1
Get Request ID
Find requestId from error response
2
Identify Error Category
Check HTTP status code
3
Search Logs
Use requestId to find exact error
4
Check Context
Look for related log entries
5
Investigate Root Cause
Analyze business logic and data
6
Apply Fix
Implement solution and test
HTTP Status Code Categories
Understand what each error category means and how to approach debugging
400

Bad Request

Client Error

Request format issues or business rule violations

Common Examples:

  • Validation errors (missing required fields)
  • Business rule violations (USER_NOT_ACTIVE)
  • Invalid data format or types
401

Unauthorized

Authentication

Authentication issues with JWT tokens or user permissions

Common Examples:

  • Expired JWT token
  • Invalid token signature
  • Missing authorization header
404

Resource Not Found

Not Found

Requested resource does not exist or user lacks access

Common Examples:

  • Incorrect GUID format
  • Resource was deleted
  • Permission-based hiding
409

Business Constraint

Conflict

Business rules prevent the operation from completing

Common Examples:

  • Duplicate SKU or email
  • Inventory constraints
  • State transition rules
500

Internal Error

Server Error

Unexpected server-side errors requiring investigation

Common Examples:

  • Unhandled exceptions
  • Database connection issues
  • Configuration problems