Added custom exceptions to handle http status codes
Added some tests to httpbroker module