When an interger is sent for monitor>type
an internal error occurs. If a string is sent as in the main.yml
example it is okay.
When an internal error occurs a 200 response not 500 is sent.
When an error occurs (e.g. monitor already exists) a 200 response is sent.