blob: 0a29dbf0305cfa61acf10af6b8bedc4bb64b945f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<tt>
<html><br>
<head><br>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><br>
</head><br>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><br>
<div><br><br>
</div><br>
<div> I have a case where I am creating a resource through a POST. There are a number of places where the create can fail in a known manner, and we need to alert the user to the specifics of why. Is there a way to throw an arbitrary 500, with message, from<br>
within the REST handler? I can obviously just erlang:error(whatever), but the message content is ignored, and there is no way to pass back an updated response when doing that.</div><br>
</body><br>
</html><br>
</tt>
|