API Error Handling: Best Practices

Expected Duration
Lesson Objectives
Course Number
Expertise Level


In the era of abstract service communication via API, implementing error handling using best practices is essential. In this course, you'll learn some of the best methods for handling and identifying REST API error response messages. You'll also explore the sub-elements of SOAP fault blocks. Next, you'll learn about standards for HTTP response codes, REST API JSON response standards, and standard API error messages. You'll explore how Facebook uses the Graph API web service and methods for dealing with debugging and error handling. Lastly, you'll learn how to use .NET Core to create a REST API web service, and handle error handling and custom errors.

Expected Duration (hours)

Lesson Objectives

API Error Handling: Best Practices

  • discover the key concepts covered in this course
  • describe how to handle API error responses and identify the response messages
  • describe the sub-elements and fault codes that are part of the SOAP fault block
  • describe some of the best practices of API error handling
  • describe the types of HTTP response codes
  • describe the available REST API response standards and the benefits and weaknesses of each standard
  • describe API error messages that are returned from API method calls for large corporations
  • describe the Facebook Graph API web service and the components, error handling features, and functionality
  • use HTTP status codes to build a REST service in .NET Core
  • describe how to provide default .NET Core error responses
  • return basic responses in .NET Core by providing appropriate response codes
  • describe how to provide detailed responses using custom errors using .NET Core
  • create and use custom errors using .NET Core
  • summarize the key concepts covered in this course
  • Course Number:

    Expertise Level