Removed unused error handler middleware.
Implemented reusable error handler function.
If there is error, return only the error message. Not the whole error.
Added error status code to be 400 for all errors.
Tests for all end points added.