aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorttsanton2014-01-09 12:38:03 (EST)
committerttsanton2014-01-10 09:11:39 (EST)
commitd5994980c85f00d96b63b4f29ccd3feba1471530 (patch)
tree14a079113b1b9a2292993baecbfc9d9f9e329de6
parent71eabcb06adb33103801ac4f8406fd40d1f68c58 (diff)
downloadorg.eclipse.lyo.rio-d5994980c85f00d96b63b4f29ccd3feba1471530.zip
org.eclipse.lyo.rio-d5994980c85f00d96b63b4f29ccd3feba1471530.tar.gz
org.eclipse.lyo.rio-d5994980c85f00d96b63b4f29ccd3feba1471530.tar.bz2
Bug 425136 - RIO CM Error status code not matching the responserefs/changes/56/20456/2
Change-Id: I311197cfbb8c5c241e61170c1b5ad7faf0371273 Signed-off-by: ttsanton <ttsanton@us.ibm.com>
-rw-r--r--org.eclipse.lyo.rio.core/src/main/java/org/eclipse/lyo/rio/services/RioBaseService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.lyo.rio.core/src/main/java/org/eclipse/lyo/rio/services/RioBaseService.java b/org.eclipse.lyo.rio.core/src/main/java/org/eclipse/lyo/rio/services/RioBaseService.java
index 0948ba3..14e4c73 100644
--- a/org.eclipse.lyo.rio.core/src/main/java/org/eclipse/lyo/rio/services/RioBaseService.java
+++ b/org.eclipse.lyo.rio.core/src/main/java/org/eclipse/lyo/rio/services/RioBaseService.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011 IBM Corporation.
+ * Copyright (c) 2011, 2014 IBM Corporation.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -96,7 +96,7 @@ public abstract class RioBaseService extends HttpServlet {
response.setStatus(ex.getStatus());
response.setHeader(IConstants.HDR_OSLC_VERSION, IConstants.OSLC_VERSION);
response.setContentType(IConstants.CT_RDF_XML);
- RioError error = new RioError(IConstants.SC_INTERNAL_ERROR, ex.getMessage() );
+ RioError error = new RioError(ex.getStatus(), ex.getMessage() );
response.getWriter().write(error.toString());
} catch( Exception ex ) {
// return with an OSLC message style