Vapor response customization

How can I customize response messages , for example on status 200ok for function to create user i need to return message ( user created)

I use vapor for ios app

Welcome to the community!

Look at 50:09 of my video

I return a 500 internal error if the data can’t be parsed, and if it can I return a 201 created with the object using ClientResponse

This video is part of a larger series where I would live stream making a Vapor server API and an iOS app. The whole process is live-streamed so you can see all the code and how an app is really made (past tutorials)

1 Like