15  How can I handle API errors?

15.1 Introduction

(introduction will be written ~last)

15.1.1 Learning Objectives

After you read this chapter, you will be able to:

  • Describe how {plumber} handles errors by default.
  • Send different error messages to the server than to the client.
  • Describe the possible responses from an endpoint.
  • Return useful error responses from an endpoint.

15.1.2 Prerequisites

(prerequisites will be filled in as I write, if I decide to keep this section)