FakeURL
DocumentationExamplesFAQ

Usage Examples

Practical examples to get you started with FakeURL in different scenarios

Simple Success Response
#1

Return a 200 OK status with empty JSON

URL:

https://fakeurl.dev/200

Use case:

Test successful API responses

Try it →
Not Found Error
#2

Simulate a 404 Not Found error

URL:

https://fakeurl.dev/404

Use case:

Test error handling for missing resources

Try it →
Server Error
#3

Simulate a 500 Internal Server Error

URL:

https://fakeurl.dev/500

Use case:

Test error handling for server failures

Try it →
Network Delay
#4

Add a 3 second delay to simulate slow network

URL:

https://fakeurl.dev/200?delay=3000

Use case:

Test loading states and timeout handling

Try it →
Created Resource
#5

Return 201 Created with custom JSON

URL:

https://fakeurl.dev/201?json={"id":123,"name":"New Item","created":true}

Use case:

Test POST request success responses

Try it →
Unauthorized Access
#6

Return 401 Unauthorized

URL:

https://fakeurl.dev/401

Use case:

Test authentication error handling

Try it →
Validation Error
#7

Return 422 Unprocessable Entity with error details

URL:

https://fakeurl.dev/422?json={"error":"Validation failed","fields":["email","password"]}

Use case:

Test form validation error handling

Try it →
Rate Limited
#8

Return 429 Too Many Requests

URL:

https://fakeurl.dev/429

Use case:

Test rate limiting error handling

Try it →
Paginated Response
#9

Simulate paginated data

URL:

https://fakeurl.dev/200?json={"data":[{"id":1},{"id":2}],"page":1,"total":100,"hasMore":true}

Use case:

Test pagination logic

Try it →
Custom Headers
#10

Return response with custom headers

URL:

https://fakeurl.dev/200?headers=X-Rate-Limit:100,X-Rate-Remaining:95

Use case:

Test header parsing and rate limit display

Try it →
💡 Pro Tips

Combine Multiple Parameters

You can combine delay, JSON, and headers in a single URL

/200?delay=1000&json={"status":"ok"}&headers=X-Custom:Value

Test Different HTTP Methods

FakeURL supports GET, POST, PUT, DELETE, and OPTIONS methods

URL Encode JSON

Remember to URL encode complex JSON structures when using them in query parameters

Product

  • Documentation
  • Examples
  • FAQ
  • Tutorial

Resources

  • HTTP Status Codes
  • GitHub
  • Changelog

Company

  • About
  • Blog
  • Twitter

Legal

  • Privacy Policy
  • Terms of Service

© 2025 FakeURL. All rights reserved.

Built with Next.js and shadcn/ui